Chart for WinRT
DataSeries Aggregation

The C1Chart control can automatically group and aggregate each data series into a single plotted value by just setting one property. This action combines all values for a single series into one value using one of the supported aggregation functions (sum, average, min, max, variance, standard deviation, etc).

Just set the Aggregate property on the C1Chart control to apply the grouping for all series. For example, if we have a chart with four data series and we set the Aggregate property to Sum, the result would look something like this:

 

The markup used to Aggregate the DataSeries resembles the following:

XAML Markup
Copy Code
<Chart:C1Chart x:Name="chart0" Height="350" Width="450" ChartType="Column" Palette="Solstice" Foreground="Black" Xaml:C1NagScreen.Nag="True">
            <!-- Populate the chart with three series -->
            <Chart:C1Chart.Data>
                <Chart:ChartData >
                    <Chart:ChartData.Children>
                        <Chart:DataSeries Label="Revenue" Aggregate="Sum" Values="1200, 1205, 400, 1410" Xaml:C1NagScreen.Nag="True"></Chart:DataSeries>
                        <Chart:DataSeries Label="Expense" Aggregate="Sum"  Values="400, 300, 300, 210" Xaml:C1NagScreen.Nag="True"></Chart:DataSeries>
                        <Chart:DataSeries Label="Profit" Aggregate="Sum"  Values="790, 990, 175, 1205" Xaml:C1NagScreen.Nag="True"></Chart:DataSeries>
                    </Chart:ChartData.Children>
                </Chart:ChartData>
            </Chart:C1Chart.Data>
</Chart>

 

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback